
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Rest;

public interface RestDao extends Dao {

    /**
     * Retrieves all of the rests
     */
    public List getRests(Rest rest);

    /**
     * Gets rest's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the rest's id
     * @return rest populated rest object
     */
    public Rest getRest(final Long id);

    /**
     * Saves a rest's information
     * @param rest the object to be saved
     */    
    public void saveRest(Rest rest);

    /**
     * Removes a rest from the database by id
     * @param id the rest's id
     */
    public void removeRest(final Long id);
}

